from django.conf.urls import url, include

from web.views import account

urlpatterns = [
    # 注册
    url(r'^register/$', account.Register, name='register'),

    # 发送验证码
    url(r'^send/sms/$', account.send_sms, name='send_sms'),

    # 短信登录
    url(r'^login/$', account.Login, name='login'),

    # 验证码登录
    url(r'^login_code/$', account.LoginCode, name='login_code'),

    # 验证码图片生成
    url(r'^code/$', account.GetCode, name='code'),

    # index
    url(r'^index/$', account.index, name='index'),
    # 注销
    url(r'^logout/$', account.logout, name='logout'),

]
